//
//  MainWebViewController.m
//  LoveDraw
//
//  Created by 零零壹 on 2017/7/24.
//  Copyright © 2017年 梁晨. All rights reserved.
//

#import "MainWebViewController.h"

@interface MainWebViewController ()

@property(nonatomic,strong)UIWebView *webV;

@end

@implementation MainWebViewController

-(void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBar.hidden = NO;
    [self.navigationController setNavigationBarHidden:NO animated:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.webV = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, KscreenW, KscreenH)];
    [self.view addSubview:self.webV];
    [self.webV loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",KUrl,self.url]]]];


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
